<script>
  import axios from "axios";
  import api from "../api/api";
  export default {
    mounted(){
      axios.get(api.getBanner)
      .then((data)=>{data})
      .catch((err)=>{console.log(err);})
    }
  }  
</script>

<template>
<!-- banner  -->
  <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
    <!-- autoplay为自动播放的时间 -->
    <van-swipe-item>1</van-swipe-item>
    <van-swipe-item>2</van-swipe-item>
    <van-swipe-item>3</van-swipe-item>
    <van-swipe-item>4</van-swipe-item>
  </van-swipe>
    <h1>home page</h1>
</template>